package com.mt.roll.wms.vo;


import com.mt.roll.core.vo.CommonVo;
import com.mt.roll.core.vo.PageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @Author weihongyang
 * @Date 2021/3/10 9:07 上午
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@ApiModel(value = "报废信息", description = "用于查询报废信息")
public class ScrapInformationVo extends CommonVo implements PageVo.ConvertVo {
    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键", required = true, example = "1")
    @NotNull(message = "ID不能为空")
    private Long id;

    /**
     * 报废类型ID
     */
    @ApiModelProperty(value = "主报废类型ID", example = "scrapId")
    private Long scrapId;


    /**
     * 报废类型
     */
    @ApiModelProperty(value = "报废类型", example = "scrapType")
    private String scrapType;

    /**
     * 报废原因编码
     */
    @ApiModelProperty(value = "报废原因编码", example = "code")
    private String code;

    /**
     * 报废原因
     */
    @ApiModelProperty(value = "报废原因", example = "scrap")
    private String scrap;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", example = "description")
    private String description;
}
